package dataStructures;

import java.util.Calendar;

public class TimeStamp {
	public String timeStamp;
	
	public TimeStamp() {
		Calendar cal = Calendar.getInstance();
		timeStamp = 
			String.valueOf(cal.get(Calendar.YEAR)) + "-" + 
			String.valueOf(cal.get(Calendar.MONTH) + 1) + "-" + 
			String.valueOf(cal.get(Calendar.DATE)) + "-" + 
			String.valueOf(cal.get(Calendar.HOUR_OF_DAY)) + "-" + 
			String.valueOf(cal.get(Calendar.MINUTE)) + "-" + 
			String.valueOf(cal.get(Calendar.SECOND)) + "-" + 
			String.valueOf(cal.get(Calendar.MILLISECOND));	
			
	}

	public String toString() {
		return timeStamp;
	}
}
